<?php

include "autoload.php";

use \collections\set\TreeSet;
use \system\in\Scanner;

$set = new TreeSet();

$scanner = new Scanner("./input/numbers.txt");
while ($scanner->hasNext()) {
    $num = $scanner->nextInt();
    $set->add($num);
}
printf("%s\n", Scanner::arrDump($set->toArray()));

$set->remove(34);
printf("%s\n", Scanner::arrDump($set->toArray()));



